package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CstProjectMapper;
import com.ruoyi.system.domain.CstProject;
import com.ruoyi.system.service.ICstProjectService;

/**
 * 项目Service业务层处理
 * 
 * @author zjw
 * @date 2023-01-04
 */
@Service
public class CstProjectServiceImpl implements ICstProjectService 
{
    @Autowired
    private CstProjectMapper cstProjectMapper;

    /**
     * 查询项目
     * 
     * @param projectId 项目主键
     * @return 项目
     */
    @Override
    public CstProject selectCstProjectByProjectId(Long projectId)
    {
        return cstProjectMapper.selectCstProjectByProjectId(projectId);
    }

    /**
     * 查询项目列表
     * 
     * @param cstProject 项目
     * @return 项目
     */
    @Override
    public List<CstProject> selectCstProjectList(CstProject cstProject)
    {
        return cstProjectMapper.selectCstProjectList(cstProject);
    }

    /**
     * 新增项目
     * 
     * @param cstProject 项目
     * @return 结果
     */
    @Override
    public int insertCstProject(CstProject cstProject)
    {
        return cstProjectMapper.insertCstProject(cstProject);
    }

    /**
     * 修改项目
     * 
     * @param cstProject 项目
     * @return 结果
     */
    @Override
    public int updateCstProject(CstProject cstProject)
    {
        return cstProjectMapper.updateCstProject(cstProject);
    }

    /**
     * 批量删除项目
     * 
     * @param projectIds 需要删除的项目主键
     * @return 结果
     */
    @Override
    public int deleteCstProjectByProjectIds(Long[] projectIds)
    {
        return cstProjectMapper.deleteCstProjectByProjectIds(projectIds);
    }

    /**
     * 删除项目信息
     * 
     * @param projectId 项目主键
     * @return 结果
     */
    @Override
    public int deleteCstProjectByProjectId(Long projectId)
    {
        return cstProjectMapper.deleteCstProjectByProjectId(projectId);
    }
}
